package FaceDetection;   
  
public class Test {   
  
    public static void main(String[] args) {   
           
        JNIOpencv open = new JNIOpencv("jniOpenCV");   
  
        String filename = "d:/80010.jpg";   
  
        String cascade = "d:/haarcascade_frontalface_alt2.xml";   
  
        int[] faces = open.detectFace(40, 40, cascade, filename);   
        if(faces != null && faces.length!=0){   
  
            System.out.println( "faces " + faces.length/4 );   
  
            for (int temp : faces) {   
                System.out.println(temp);   
            }   
        }   
    }   
}